package eco2automotive.Log;
import eco2automotive.util.TimeControl;
/**
  * Contains data about the execution flow
  * @autor Fco. Javier Sánchez Esparza
  * @version 1.0
  *
  */ 
public class LogInformation {
    String info;    
    /** 
     * Create a new String to storage information     
     */    
    public LogInformation()
    {
        info=new String();
    }    
    /** Return a String with the information and date
     * @return info Example:"[Sat May 26 22:50:01 GMT+01:00 2012 - 1338069001415] String_Info"
     */
    public String getLogInformation (){
        info=info.concat(new TimeControl().getFormated());
        return this.info;
    }
    /** 
     * Concat the recived string to information string
     * @param s String to add the log information
     */    
    public void addLogInformation(String s){

        info=info.concat(s);
    }
    /** 
     * Clear the data
     */    
    public void clear(){
        this.info="";
    }
}
